import VueRouter from 'vue-router'
import Vue from 'vue'
import Index from '@/views/Index'
import Classify from '@/views/Classify'
import Order from '@/views/Order'
import My from '@/views/My'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    { path: '/', redirect: '/index' },
    { path: '/index', component: Index },
    { path: '/classify', component: Classify },
    { path: '/order', component: Order },
    { path: '/my', component: My },
    // {path: '*',component:Notfound},
  ],
})
export default router
